-
Notifications
You must be signed in to change notification settings - Fork 62
Save logs to file and rotate it #270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
golangci-lint run is ok in local machine, submit go.sum, please check again |
cmd/server/main.go
Outdated
|
||
func init() { | ||
flag.StringVar(&configPath, "c", "config/config.yaml", "set config yaml file path") | ||
flag.StringVar(&configPath, "c", "config/config-raft.yaml", "set config yaml file path") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could keep config.yaml
as its default configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
config/config-consul.yaml
Outdated
min_alive_size: 5 | ||
min_alive_size: 5 | ||
|
||
log: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can comment out those lines to keep the stdout as its default output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
config/config-raft.yaml
Outdated
ping_interval_seconds: 3 | ||
min_alive_size: 5 | ||
|
||
log: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
config/config-zk.yaml
Outdated
min_alive_size: 5 | ||
min_alive_size: 5 | ||
|
||
log: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@greatsharp Thanks for your contribution. |
@greatsharp You need to run the lint command before committing the changed codes. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #270 +/- ##
============================================
+ Coverage 43.38% 46.26% +2.88%
============================================
Files 37 45 +8
Lines 2971 4286 +1315
============================================
+ Hits 1289 1983 +694
- Misses 1544 2095 +551
- Partials 138 208 +70
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
No description provided.